package com.company.project.service.impl;

import com.company.project.dao.AdviserResumeMapper;
import com.company.project.model.Adviser;
import com.company.project.model.AdviserResume;
import com.company.project.service.AdviserResumeService;
import com.company.project.core.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


/**
 * Created by CodeGenerator on 2018/10/08.
 */
@Service
@Transactional
public class AdviserResumeServiceImpl extends AbstractService<AdviserResume> implements AdviserResumeService {
    @Resource
    @Autowired
    private AdviserResumeMapper adviserResumeMapper;

    /**
     * 修改顾问介绍
     * @param
     * @return
     */
    @Override
    public Boolean deleteA(Adviser adviser) {
        return adviserResumeMapper.deleteA(adviser);
    }

    @Override
    public Boolean insertAR(Adviser adviser) {
        return adviserResumeMapper.insertAR(adviser);
    }


    /**
     * 删除顾问信息
     * @param id
     * @return
     */
    @Override
    public Boolean deleteAR(Integer id) {
        return  adviserResumeMapper.deleteAR(id);
    }

}
